* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  touch-action: manipulation;
}

body {
  background: #f0e6d3;
  overflow: hidden;
  -webkit-text-size-adjust: 100%;
  position: fixed;
}

.annotation-container {
  writing-mode: vertical-rl;
  height: 100vh;
  width: 100vw;
  padding: 2rem 1rem;
  font-family: 'SimSun', '宋体', serif;
  font-size: 1.2rem;
  line-height: 2;
  color: #3d2e1e;
  overflow-x: auto;/* 水平滚动容器 */
  letter-spacing: 0.1em;
  scroll-behavior: smooth;
  overflow-x: scroll;
  white-space: normal;
  -webkit-overflow-scrolling: touch;
}
.annotation-content {
  min-height: 100%;
  outline: none;
  border-right: 1px solid #c4a87d;
  padding-right: 1rem;
  display: inline-block;/* 关键：使内容横向扩展 */
  width: auto;
  margin-top: 3em;
  text-orientation: upright;
  word-wrap: break-word;
  word-break: break-all;
}
/* 段落间距 */
.editor-content p {
  margin: 0 0 0 0;
}
@media (max-width: 480px) {
  .editor-container {
    font-size: 1rem;
    padding: 1rem 0.5rem;
  }
}
/* 隐藏滚动条但保留滚动功能 */
::-webkit-scrollbar {
  width: 0;
  height: 0;
}